import 'package:flutter/material.dart';
import 'package:flutter_redux_hooks/flutter_redux_hooks.dart';
import 'package:wy/router.dart';
import 'package:wy/store/store.dart';
import 'package:wy/utils/player_state.dart';
import 'package:wy/utils/system_util.dart';

void main() {
  setStatusBarStyle(Brightness.light);

  runApp(StoreProvider<StoreState>(
      store: createStore(),
      child: PlayStateProvider(
        child: App(),
      )));
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'my first flutter',
      routes: routes,
      initialRoute: '/',
      // initialRoute: '/demo2',
    );
  }
}
